home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1304.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.2 KB  |  141 lines

  1. 64
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. MsgBox 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baMsgBox displays a standard MessageBox
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baMsgBox( Message, Caption, Buttons, Icon, DefButton )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, String, String, String, Integer. 
  36. --- RECORDSEPARATOR ---
  37. Message is the message to display. This can contain more than one line. 
  38. --- RECORDSEPARATOR ---
  39. Caption is the caption to show in the Title bar. 
  40. --- RECORDSEPARATOR ---
  41. Buttons is the type of buttons to display. This can be one of the following: 
  42. --- RECORDSEPARATOR ---
  43. "OK" 
  44. --- RECORDSEPARATOR ---
  45. "OKCancel" 
  46. --- RECORDSEPARATOR ---
  47. "RetryCancel" 
  48. --- RECORDSEPARATOR ---
  49. "AbortRetryIgnore" 
  50. --- RECORDSEPARATOR ---
  51. "YesNo" 
  52. --- RECORDSEPARATOR ---
  53. "YesNoCancel" 
  54. --- RECORDSEPARATOR ---
  55. Icon is the type of icon to display. This can be one of the following: 
  56. --- RECORDSEPARATOR ---
  57. "Stop" 
  58. --- RECORDSEPARATOR ---
  59. "Information" 
  60. --- RECORDSEPARATOR ---
  61. "Question" 
  62. --- RECORDSEPARATOR ---
  63. "Exclamation" 
  64. --- RECORDSEPARATOR ---
  65. "NoIcon" 
  66. --- RECORDSEPARATOR ---
  67. DefButton is the number of the default (selected) button. Can be 1, 2, or 3 
  68. --- RECORDSEPARATOR ---
  69. depending on the number of buttons. On
  70. --- RECORDSEPARATOR ---
  71.  Windows
  72. --- RECORDSEPARATOR ---
  73. , the button on the left hand side 
  74. --- RECORDSEPARATOR ---
  75. is 1. On
  76. --- RECORDSEPARATOR ---
  77.  Macintosh
  78. --- RECORDSEPARATOR ---
  79. , the right hand button is number 1.
  80. --- RECORDSEPARATOR ---
  81.  
  82. --- RECORDSEPARATOR ---
  83. Returns:
  84. --- RECORDSEPARATOR ---
  85.  
  86. --- RECORDSEPARATOR ---
  87. String. 
  88. --- RECORDSEPARATOR ---
  89. Returns the name of the button clicked eg "OK" or "Ignore".
  90. --- RECORDSEPARATOR ---
  91.  
  92. --- RECORDSEPARATOR ---
  93. Examples:
  94. --- RECORDSEPARATOR ---
  95.  
  96. --- RECORDSEPARATOR ---
  97. Director: 
  98. --- RECORDSEPARATOR ---
  99. set Answer = baMsgBox( "Is this is a test message?", "A question" , "YesNo", 
  100. --- RECORDSEPARATOR ---
  101. "Question" , 1 ) 
  102. --- RECORDSEPARATOR ---
  103. if Answer = "Yes" then baMsgBox("Correct!" , "The answer", "OK", "Information", 1) 
  104. --- RECORDSEPARATOR ---
  105. Authorware: 
  106. --- RECORDSEPARATOR ---
  107. Answer := baMsgBox( "Is this is a test message?", "A question" , "YesNo", 
  108. --- RECORDSEPARATOR ---
  109. "Question" , 1 ) 
  110. --- RECORDSEPARATOR ---
  111. if Answer = "Yes" then baMsgBox("Correct!" , "The answer", "OK", "Information", 1)
  112. --- RECORDSEPARATOR ---
  113.  
  114. --- RECORDSEPARATOR ---
  115. Notes:
  116. --- RECORDSEPARATOR ---
  117.  
  118. --- RECORDSEPARATOR ---
  119. On
  120. --- RECORDSEPARATOR ---
  121.  Macintosh
  122. --- RECORDSEPARATOR ---
  123. , you can use alternative icon names - "Note" instead of 
  124. --- RECORDSEPARATOR ---
  125. "Information"; "Caution" instead of "Exclamation". 
  126. --- RECORDSEPARATOR ---
  127. On
  128. --- RECORDSEPARATOR ---
  129.  Macintosh
  130. --- RECORDSEPARATOR ---
  131. , if the Caption argument is empty, then a non-movable message box 
  132. --- RECORDSEPARATOR ---
  133. will be used.
  134. --- RECORDSEPARATOR ---
  135.  
  136. --- RECORDSEPARATOR ---
  137. See also:
  138. --- RECORDSEPARATOR ---
  139.  
  140. --- RECORDSEPARATOR ---
  141. baMsgBox